package com.leo.base_project.activity.database;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.leo.base_project.R;
import com.leo.base_project.entity.User;

import org.jetbrains.annotations.NotNull;

import java.util.List;

public class UserDataAdapter extends BaseQuickAdapter<User,DataViewHolder> {

    public UserDataAdapter(List<User> data) {
        super(R.layout.item_rv_drop, data);
    }

    @Override
    protected void convert(@NotNull DataViewHolder dataViewHolder, User user) {
        dataViewHolder.textView.setText(user.toString());
    }
}
